package com.munhrasoft.dinamica.business.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@NamedQueries(value = { @NamedQuery(name = "findAllLog", query = "SELECT log FROM Log log") })
@SequenceGenerator(name = "logSeq", initialValue = 1, allocationSize = 1)
public class Log {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "logSeq")
	private long id_log;
	private String log;
	@Temporal(TemporalType.DATE)
	private Date datalog;

	public long getId_log() {
		return id_log;
	}

	public void setId_log(long id_log) {
		this.id_log = id_log;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public Date getDatalog() {
		return datalog;
	}

	public void setDatalog(Date datalog) {
		this.datalog = datalog;
	}

}
